home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sprite 1984 - 1993
/
Sprite 1984 - 1993.iso
/
src
/
cmds
/
lpr
/
lp.local.h
< prev
next >
Wrap
C/C++ Source or Header
|
1990-02-16
|
3KB
|
108 lines
/*
* Copyright (c) 1983 Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted
* provided that this notice is preserved and that due credit is given
* to the University of California at Berkeley. The name of the University
* may not be used to endorse or promote products derived from this
* software without specific prior written permission. This software
* is provided ``as is'' without express or implied warranty.
*
* @(#)lp.local.h 5.2 (Berkeley) 5/5/88
*/
/*
* Possibly, local parameters to the spooling system
*/
/*
* Magic number mapping for binary files, used by lpr to avoid
* printing objects files.
*/
#include <a.out.h>
#include <ar.h>
#ifdef sprite
#include <sys/param.h>
#endif
#ifndef A_MAGIC1 /* must be a VM/UNIX system */
# define A_MAGIC1 OMAGIC
# define A_MAGIC2 NMAGIC
# define A_MAGIC3 ZMAGIC
# undef ARMAG
# define ARMAG 0177545
#endif
/*
* Defaults for line printer capabilities data base
*/
#define DEFLP "lp"
#define DEFLOCK "lock"
#define DEFSTAT "status"
#define DEFSPOOL "/usr/spool/lpd"
#define DEFDAEMON "/usr/lib/lpd"
#define DEFLOGF "/dev/console"
#define DEFDEVLP "/dev/lp"
#define DEFRLPR "/usr/lib/rlpr"
#define DEFBINDIR "/usr/ucb"
#define DEFMX 1000
#define DEFMAXCOPIES 0
#define DEFFF "\f"
#define DEFWIDTH 132
#define DEFLENGTH 66
#define DEFUID 1
/*
* When files are created in the spooling area, they are normally
* readable only by their owner and the spooling group. If you
* want otherwise, change this mode.
*/
#define FILMOD 0660
/*
* Printer is assumed to support LINELEN (for block chars)
* and background character (blank) is a space
*/
#define LINELEN 132
#define BACKGND ' '
#define HEIGHT 9 /* height of characters */
#define WIDTH 8 /* width of characters */
#define DROP 3 /* offset to drop characters with descenders */
/*
* path name of files created by lpd.
*/
#ifdef sprite
char masterLock[MAXPATHLEN];
char pdevName[MAXPATHLEN];
#else
#define MASTERLOCK "/usr/spool/lpd.lock"
#define SOCKETNAME "/dev/printer"
#endif
/*
* Some utilities used by printjob.
*/
#ifdef sprite
#define PR "/sprite/cmds/pr"
#define MAIL "/sprite/cmds/sendmail"
#else
#define PR "/bin/pr"
#define MAIL "/usr/lib/sendmail"
#endif
/*
* Define TERMCAP if the terminal capabilites are to be used for lpq.
*/
#define TERMCAP
/*
* Maximum number of user and job requests for lpq and lprm.
*/
#define MAXUSERS 50
#define MAXREQUESTS 50